package com.nexgo.data.net;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by xiaox on 2017/12/13.
 */

public interface HttpsComm {
    @Headers({
            "Content-Type: application/x-www-form-urlencoded; charset=UTF-8",
            "User-Agent: Donjin Http 0.1",
            "Cache-Control: no-cache",
            "Accept: */*; charset=UTF-8",
            "Accept-Encoding: */*",
    })
    @POST("{payPath}")
    Observable<ResponseBody> sendAndRecv(@Body RequestBody request, @Path("payPath") String payPath);

}
